package edu.predatorwars.shared.models;

import java.util.UUID;

import org.codehaus.jackson.annotate.JsonTypeInfo;

@JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@class")
public abstract class Message {

	private MessageType type;
	private UUID gameId;
	
	public Message() {
		
	}
	
	public Message(UUID gameId, MessageType type) {
		this.gameId = gameId;
		this.type = type;
	}
	
	public MessageType getType() {
		return type;
	}
	
	public UUID getGameId() {
		return gameId;
	}

	public void setType(MessageType type) {
		this.type = type;
	}
}
